import request from '/@/utils/request'
// 查询流程审批测试列表
export function listFlowDemo(query:object) {
  return request({
    url: '/api/v1/flow/flowDemo/list',
    method: 'get',
    params: query
  })
}
// 查询流程审批测试详细
export function getFlowDemo(id:number) {
  return request({
    url: '/api/v1/flow/flowDemo/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增流程审批测试
export function addFlowDemo(data:object) {
  return request({
    url: '/api/v1/flow/flowDemo/add',
    method: 'post',
    data: data
  })
}
// 修改流程审批测试
export function updateFlowDemo(data:object) {
  return request({
    url: '/api/v1/flow/flowDemo/edit',
    method: 'put',
    data: data
  })
}
// 删除流程审批测试
export function delFlowDemo(ids:number[]) {
  return request({
    url: '/api/v1/flow/flowDemo/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
